package xml;

import java.util.*;

public class TagXML {
	public TagXML father=null;
	public ArrayList<TagXML> taguri=new ArrayList<TagXML>();
	public ArrayList<TagXML> atribute=new ArrayList<Atribute>();
	public String name=null;
	public String value=null;
	public AddAtribute atribAdder=new AddAtribute(name, value);
	public DeleteAtribute atribDeleter = new DeleteAtribute();
	public AddTag tagAdder =new AddTag();
	public DeleteTag tagDelete=new DeleteTag();
	
	public void setName(String s)
	{
		this.name=s;
	}

	public ArrayList<TagXML> getTaguri() {
		return taguri;
	}

	public ArrayList<TagXML> getAtribute() {
		return atribute;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public TagXML() {
		super();	
	}

	public TagXML(TagXML father) {
		super();
		this.father = father;
	}

	public TagXML(TagXML father, String name, String value) {
		super();
		this.father = father;
		this.name = name;
		this.value = value;
	}

	public TagXML(TagXML father, String name) {
		super();
		this.father = father;
		this.name = name;
	}

	public TagXML(String name) {
		super();
		this.name = name;
	}

	public TagXML(String name, String value) {
		super();
		this.name = name;
		this.value = value;
	}
	public void addAtribute(Atribute a)
	{
		this.atribAdder(a);
	}
	public void deleteAdder(Atribute a)
	{
		this.deleteAdder(a);
	}
	public void addSonAtribute(Atribute a, TagXML t)
	{
		///
	}
	public void deleteSonAtribute(Atribute a, TagXML t)
	{
		///
	}
	public void addTag(TagXML t)
	{
		this.addTag(t);
	}
	public void deleteTag(TagXML t)
	{
		this.deleteTag(t);
	}
	
	
	
	

}
